package com.testfileupload.uploadimg.design.proxy.dynamic.dc2;

public class CLient {
    public static void main(String[] args) {
        Subject subject = new RealSubject();
//        MyInvocationHandler handler = new MyInvocationHandler(subject);
//        Subject o = DynamicProxy.newProxyInstence(subject.getClass().getClassLoader(),
//                subject.getClass().getInterfaces(), handler);
//        o.doSomething("hahh");
        Subject o = DynamicProxy2.newProxyInstence2(subject);
        o.doSomething("hahh");

    }
}
